home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Sample Code / Folder Watching / Folder Watcher FBA ƒ / Sources / FBA.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-16  |  993 b   |  34 lines  |  [TEXT/CWIE]

  1. #pragma once
  2. // FBA.h
  3. //
  4. // Folder Watcher FBA by Greg Sutton
  5. // ©Apple Computer Inc 1996, all rights reserved.
  6.  
  7.  
  8. #include <Types.h>
  9.  
  10. // Use this DEVELOPMENT #define to allow debugging with source level debugger.
  11. // You must also change the following flags for the 'SIZE' resource
  12. //    Set 'doesAcivateOnFGSwitch' to 1
  13. //    Set 'onlyBackground'        to 0
  14. // You can use a script to quit the application - no menu bar you see
  15. //#define DEVELOPMENT
  16.  
  17. #define kFatalErr             1
  18. #define kNotFatalErr         0
  19.  
  20. #define kCycleTimeResource        'Cycl'    // Tim in seconds to check all folders
  21. #define kWatchFolderResource    'WFol'    // This resource stores all the folders to watch
  22. #define kTargetAppResource        'Targ'    // Stores creator type of target application
  23.                                         //  for modification Apple events.
  24.  
  25. #define    kFolderWatcherSuite        'wFWS'    // Our private Apple events to indicate modifications
  26.  
  27. enum
  28. {
  29.     kTypeFileAdded = 'wTFA', kTypeFileRemoved = 'wTFR', kTypeFileModified = 'wTFC'
  30. };
  31.  
  32.  
  33. unsigned long    GetCycleTime( void );
  34.